package com.aia.prm.web.ria.app.ui.qnpe;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.aia.web1.domain.Qnpe;
import com.vaadin.data.util.BeanItemContainer;

@SuppressWarnings("serial")
public class QnpeContainer extends BeanItemContainer<Qnpe> implements Serializable {
	public static final Object[] NATURAL_COL_ORDER = new Object[] { "QNXE_FROM", "QNXE_ADRESS", "QNXE_CODE", "QNXE_NAME", "QNXE_PHO",
			"QNXE_FREETEXT7", "QNXE_PROVINCE", "QNXE_CITY", "QNXE_DATE", "QNXE_TIME" };

	public static final String[] COL_HEADERS_SHOW = new String[] { "来源", "地址", "邀请码", "名字", "手机号", "年龄", "省", "市", "日期", "时间" };

	public static final Object[] NATURAL_COL_ORDER_FORM = new Object[] { "QNXE_GUID", "QNXE_ADRESS", "QNXE_CODE", "QNXE_NAME", "QNXE_SEX",
			"QNXE_BIRTH", "QNXE_FREETEXT6", "QNXE_FREETEXT5", "QNXE_PHO", "QNXE_PROVINCE", "QNXE_CITY", "QNXE_FREETEXT1", "QNXE_FREETEXT2",
			"QNXE_FREETEXT7", "QNXE_DATE", "QNXE_TIME" };

	public static final Map<String, String> FIELD_NAME_MAP = new HashMap<String, String>();

	static {
		FIELD_NAME_MAP.put("QNXE_FROM", "来源");
		FIELD_NAME_MAP.put("QNXE_GUID", "记录ID");
		FIELD_NAME_MAP.put("QNXE_ADRESS", "地址");
		FIELD_NAME_MAP.put("QNXE_CODE", "邀请码");
		FIELD_NAME_MAP.put("QNXE_NAME", "姓名");
		FIELD_NAME_MAP.put("QNXE_SEX", "性别");
		FIELD_NAME_MAP.put("QNXE_BIRTH", "生日-年");
		FIELD_NAME_MAP.put("QNXE_FREETEXT6", "生日-月");
		FIELD_NAME_MAP.put("QNXE_FREETEXT5", "常用语言");
		FIELD_NAME_MAP.put("QNXE_PHO", "手机号");
		FIELD_NAME_MAP.put("QNXE_PROVINCE", "省");
		FIELD_NAME_MAP.put("QNXE_CITY", "市");
		FIELD_NAME_MAP.put("QNXE_FREETEXT1", "邮箱");
		FIELD_NAME_MAP.put("QNXE_FREETEXT2", "身份证后四位");
		FIELD_NAME_MAP.put("QNXE_FREETEXT7", "年龄");
		FIELD_NAME_MAP.put("QNXE_DATE", "日期");
		FIELD_NAME_MAP.put("QNXE_TIME", "时间");
	}

	public QnpeContainer() throws InstantiationException, IllegalAccessException {
		super(Qnpe.class);
	}
}